package com.web709.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.web709.common.R;
import com.web709.dto.DemandDto;
import com.web709.entity.Demand;
import org.springframework.http.ResponseEntity;

public interface DemandService extends IService<Demand> {
    R<String> publishDemand(DemandDto demandDto);

    R<String> publishDemandWithImgs(DemandDto demandDto);

    R<String> updateDemandWithImgs(DemandDto demandDto);

    R<Page<DemandDto>> queryDemandsWithImgs(Page<DemandDto> page);

    ResponseEntity<String> deleteDemand(int demandId);

    ResponseEntity<String> receiveDemand(int demandId, int volunteerId);
}
